package com.lww.springcloudapi.entity.parent;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.Version;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

@Data
@EqualsAndHashCode(callSuper = false) //比较HashCode值
@NoArgsConstructor //无参构造
@AllArgsConstructor //有参构造
@Accessors(chain = true) //链式编程
@ApiModel(value = "ParentEntity对象", description = "实体提供父类对象")
public class ParentEntity {

    @ApiModelProperty(value = "id")
    @TableId(type = IdType.ASSIGN_ID)
    private Long id;

    @TableLogic   //逻辑删除
    private Integer deleted;

}
